package com.usian.service;

import com.usian.pojo.SearchItem2;

import java.io.IOException;
import java.util.List;

public interface SearchItemService {
    //导入商品数据到索引库
    boolean importAll();
    //商品搜索
    List<SearchItem2> selectByq(String q, Long page, Integer pageSize);
    //给es添加
    int insertDocument(String msg) throws IOException;
    //给es修改
    int updateDocument(String msg) throws IOException;
    //给es添加
    int deleteDocument(String msg);
}
